﻿<%@ Page Language="C#" MasterPageFile="~/parents/pmaster.Master" AutoEventWireup="true" CodeBehind="PAttendence.aspx.cs" Inherits="ESCHOOL.parents.WebForm4" Title="Attendence" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" runat="server" 
    contentplaceholderid="ContentPlaceHolder1">

                   
                        <ContentTemplate>
                            <p>
                                <asp:Label ID="Label1" runat="server" Text="Label" Visible="False"></asp:Label>
                        </p>
                            <table class="style1">
                                <tr>
                                    <td style="text-align: left; margin-left: 40px">
                                        Select year&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                        <asp:DropDownList ID="ddyear" runat="server" 
                                            >
                                        </asp:DropDownList>
                                        <asp:Button ID="btnview" runat="server" onclick="btnview_Click" Text="Show" />
                                        <br />
                                        <br />
                                    </td>
                                </tr>
                            </table>
                            <p>
                                <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 

                onselectedindexchanged="GridView1_SelectedIndexChanged" PageSize="12">
                                    <Columns>
                                        <asp:TemplateField HeaderText="Month">
                                            <ItemTemplate>
                                                <%# getMonth(Eval("month").ToString()) %>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="Present">
                                            <ItemTemplate>
                                                <%# getpresent(Eval("present").ToString()) %>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                        <asp:TemplateField HeaderText="Absent">
                                            <ItemTemplate>
                                                <%# getabsent(Eval("absent").ToString()) %>
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                    </Columns>
                                </asp:GridView>
                            </p>
                            <p>
                                <br />
                            </p>
                            <p>
                            </p>
                        </ContentTemplate>
                  
</asp:Content>

